<template>
  <div class="dashboard-container">
    <div class="app-container">
      <page-tools>
        <template v-slot:after>
          <el-button type="primary" size="small">新增权限 </el-button>
        </template>
      </page-tools>
      <!-- 表格 -->
      <el-table border v-model="list">
        <el-table-column align="center" label="名称" />
        <el-table-column align="center" label="标识" />
        <el-table-column align="center" label="描述" />
        <el-table-column align="center" label="操作">
          <template>
            <el-button type="text">添加</el-button>
            <el-button type="text">编辑</el-button>
            <el-button type="text">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import { getPermissionList } from "@/api/permission";
import { transListToTreeData } from "@/utils/index.js";
export default {
  name: "Permissions",
  data() {
    return {
      list: []
    };
  },

  mounted() {},

  methods: {
      async  getPermissionList() {
      this.list = transListToTreeData(await getPermissionList(), '0')
    }
  }
};
</script>

<style lang="less" scoped>
</style>